package com.suixinsanren.design.compound.demo01;

public class CountingDuckFactory extends AbstractDuckFactory {

    @Override
    QuackAble createMallardDuck() {
        return new QuackCounter(new MallardDuck());
    }

    @Override
    QuackAble createDuckCall() {
        return new QuackCounter(new DuckCall());
    }
}
